package com.itheima.file;

import java.io.File;

public class FileDemo1 {
    public static void main(String[] args) {
        String path = "C:\\Users\\xiaoyu\\Desktop\\上海海事大学硕士研究生入学学调档函.pdf";
        File f = new File(path);
        System.out.println(f);
        String parent = "C:\\Users\\xiaoyu\\Desktop";
        String child = "上海海事大学硕士研究生入学学调档函.pdf";
        File f1 = new File(parent,child);
        System.out.println(f1);

        File f2 = new File("C:\\Users\\xiaoyu\\Desktop");
        File f3 = new File(f2,child);
        System.out.println(f3);
    }
}
